Transforms that can be applied to buffers as they are displayed to a window.
Compatibility value for ANativeWindow_setFrameRate.
Legacy window pixel format names, kept for backwards compatibility. New code and APIs should use AHARDWAREBUFFER_FORMAT_*.
Acquire a reference on the given {@link ANativeWindow} object. This prevents the object from being deleted until the reference is removed.
Get the dataspace of the buffers in window.
Return the current pixel format (AHARDWAREBUFFER_FORMAT_*) of the window surface.
Return the current height in pixels of the window surface.
Return the current width in pixels of the window surface.
Lock the window's next drawing surface for writing. inOutDirtyBounds is used as an in/out parameter, upon entering the function, it contains the dirty region, that is, the region the caller intends to redraw. When the function returns, inOutDirtyBounds is updated with the actual area the caller needs to redraw -- this region is often extended by {@link ANativeWindow_lock}.
Remove a reference that was previously acquired with {@link ANativeWindow_acquire()}.
All buffers queued after this call will be associated with the dataSpace parameter specified.
Change the format and size of the window buffers.
Set a transform that will be applied to future buffers posted to the window.
Sets the intended frame rate for this window.
Provides a hint to the window that buffers should be preallocated ahead of time. Note that the window implementation is not guaranteed to preallocate any buffers, for instance if an implementation disallows allocation of new buffers, or if there is insufficient memory in the system to preallocate additional buffers
Unlock the window's drawing surface after previously locking it, posting the new buffer to the display.
Opaque type that provides access to a native window.
Struct that represents a windows buffer.